
    <div class="login-form">

      <div class="head">
           <?php echo $html->image('mem2.png',array('class' =>'loader')); ?>
      </div>
  
    <?php echo $form->create('Usuario', array('action' => 'login'));?>
        <div style="text-align: center;">  
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <li>
                <?php echo $form->input('usuario',array('value'=>'USUARIO','label'=>false,'div'=>false));?> <a href="#" class=" icon user"></a>
            </li>
            <li>
                <?php echo $form->input('password', array('value'=>'PASSWORD','div'=>false,'class'=>'noUppercase', 'label'=>false));?> <a href="#" class=" icon lock"></a>
            </li>

            <?php if($pag !== '/'):?>
            <div class="input radio" style="padding-left:20px">
            <span style="float:left">Ir a:</span>
            <?php echo $form->input(
                    'pag',
                    array(
                            'type'=>'radio',
                            'legend'=>false,
                            'div'=>false,
                            'options'=>array(
                                    $pag => 'Ultima página',
                                    '/' => 'Pág. de inicio'
                            ),
                            'value'=>'/',
                            'style'=>'display:none'
                    ));?>
            </div>
            <br/>
            <?php else:?>
            <?php echo $form->input('pag',array('type'=>'hidden', 'value'=>$pag));?>
            <?php endif;?>
           
            <div class="p-container">								
                    <?php echo $form->submit('ACCEDER', array(
                        'div' => false,'value'=>'SIGN IN','id'=>'login'
                        ));
                    ?>
                    <div class="clear"> </div>
            </div>            
        </div>
    <?php echo $form->end(); ?>
    </div>

<div align="center">
    <?php $session->flash(); ?>
</div>
<?php 
 echo $html->css('style_login.css','stylesheet',array('media' =>  'screen'));
 echo $javascript->link(array('analytics.js'), true); 
 echo $html->css('css.css','stylesheet',array('media' =>  'screen'));
?>

<script type="text/javascript">
    $(function(){
        $('#UsuarioUsuario,#UsuarioPassword').blur(function(){
            if (this.value == '') {this.value = 'USUARIO';}
        });
        $('#UsuarioPassword').blur(function(){
            if (this.value == '') {this.value = 'PASSWORD';}
        });
        $('#UsuarioUsuario,#UsuarioPassword').focus(function(){
            if(this.value=='USUARIO'){this.value = '';}
        });
        $('#UsuarioPassword').focus(function(){
            if(this.value=='PASSWORD'){this.value = '';}
        });   
        
        
        reindex_inputs($('#login'),true);
        $('#UsuarioUsuario').focus();
    });
</script>    